package cn.buk.tms.eotms.dao;


import cn.buk.common.sc.CommonSearchCriteria;
import cn.buk.tms.eotms.entity.AmountHistory;
import cn.buk.tms.eotms.entity.RolePrivilege;
import cn.buk.tms.eotms.entity.User;
import cn.buk.tms.eotms.entity.UserBindWeixin;

import java.util.List;

/**
 * @author yfdai
 */
public interface UserDao {

  User getUserByUsername(String username);

  User getUserById(int id);

  List<RolePrivilege> searchPrivileges(int enterpriseId, int userId);

  List<AmountHistory> searchTransHistory(int ownerId, int enterpriseId, CommonSearchCriteria sc);

  int createUserBindWeixin(UserBindWeixin o);

  UserBindWeixin getUserByOpenid(int ownerId, String openid);
}
